home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
lotery46.zip
/
LOTTERY.DOC
< prev
next >
Wrap
Text File
|
1993-03-22
|
15KB
|
285 lines
One of the Livewire Collection of multi-BBS Doorware programs.
Supporting PCBoard, Wildcat!, Gap, QBBS, RBBS, Spitfire,
UltraBBS, Telegard, TriTel, TriBBS, Remote Access, and WWIV
Richard Paquette
PO Box 416
Mt. Laurel, NJ 08054
(c) Copyright 1989 - 1993
All Rights Reserved
The door creates a file called "intoday.dat", this file is to monitor
how many times that caller entered the door today! You set in the config file
how many times they are allowed in.
If you delete this file, no record is kept and the caller will again be
able to enter to door freely. PLEASE do not delete this file.
IMPORTANT NOTE: There is now a feature where you can let a winner of
the Pick-3 or Pick-4 download a "Coupon" to redemm at your place of business.
For example, you own a Pizza Parlor and want to give the winner a free pizza
for the Pick-3 or Pick-4, then create with any ascii editor two files called,
"coupon3.dat" and "coupon4.dat", YOU MUST LEAVE THE FIRST LINE AS IS in the
example, we will write starting on Line 1, Column 17 the Ticket Number that is
assigned to THAT WINNER! The rest of the file can be anything you want such as
a discount coupon to be mailed in for access minus the value of the coupon or
anything that you are willing to offer. NOTE: if you don't want to use this
added feature, then rename or DELETE the coupon*.dat files. If they aren't
there, the program will act as usual, if they are there, after winning, the
door will take the winner to a download screen where they can download the
coupon to be printed and redemmed at your place of business.
The Ticket number is also written to the winner3.dat and winner4.dat
files for you to compare when someone brings in a winning coupon!
You can now charge time for each Pick-3 or Pick-4 attempt, if you put
a 0 on the last line of the cfg, they will not be charged any time, if you
decide to charge time to play the game and they win, the time is given back
to them along with your prizes.
CONFIGURATION FILE
C:\PCB\USERS.SYS <- Path/filename to System File
The Livewire BBS <- Name of BBS
Richard <- Sysop's first name
Paquette <- Sysop's last Name
5 <- Times allowed in Door
999999 <- Registration number (or some number)
Six Month Patron Membership <- Prize for the Pick-3 game (58 char max)
Three Month Patron Membership <- Small prize to match 2 numbers (53 max)
One Year Patron Membership <- Prize for the Pick-4 game (58 char max)
Three Month Patron Membership <- Small prize to match 2 numbers (53 max)
3 <- Time charged for each try in minutes
Please note that something must be on each line.. if you do not want to offer
prizes for matching two numbers, simply put "No prize" without the quotes.
NOTE: If you are using the GTUSER.BBS system file, then line five and six
MUST be as the sample below shows.. then pick up the rest of the
Door variables from above to line seven etc...
Example configuration file for PCBOARD.SYS
------------------------------------------
C:\PCB\PCBOARD.SYS <=- (Full pathname of your PCBOARD.SYS file)
The Livewire BBS <=- (Change this to your BBS name)
Richard <=- (The Sysop's first name)
Paquette <=- (The Sysop's last name)
Example configuration file for USERS.SYS
------------------------------------------
C:\PCB\USERS.SYS <=- (Full pathname of your USERS.SYS file)
The Livewire BBS <=- (Change this to your BBS name)
Richard <=- (The Sysop's first name)
Paquette <=- (The Sysop's last name)
Example configuration file for DOOR.SYS
---------------------------------------
C:\BBS\DOOR.SYS <=- (Full pathname of your DOOR.SYS file)
The Livewire BBS <=- (Change this to your BBS name)
Richard <=- (The Sysop's first name)
Paquette <=- (The Sysop's last name)
Example configuration file for USERINFO.DAT
-------------------------------------------
C:\BBS\USERINFO.DAT <=- (Full pathname of your USERINFO.DAT file)
The Livewire BBS <=- (Change this to your BBS name)
Richard <=- (The Sysop's first name)
Paquette <=- (The Sysop's last name)
NOTE: DOOR.SYS must be in the SAME directory as USERINFO.DAT
Example configuration file for CALLINFO.BBS
-------------------------------------------
C:\BBS\CALLINFO.BBS <=- (Full pathname of your CALLINFO.BBS file)
The Livewire BBS <=- (Change this to your BBS name)
Richard <=- (The Sysop's first name)
Paquette <=- (The Sysop's last name)
Example configuration file for DORINFOx.DEF
-------------------------------------------
C:\BBS\DORINFOx.DEF <=- (Full pathname of your DORINFOx.DEF file
where 'x' is the BBS Node number.
The Livewire BBS <=- (Change this to your BBS name)
Richard <=- (The Sysop's first name)
Paquette <=- (The Sysop's last name)
Example configuration file for SFDOORS.DAT
------------------------------------------
C:\BBS\SFDOORS.DAT <=- (Full pathname of your SFDOORS.DAT file)
The Livewire BBS <=- (Change this to your BBS name)
Richard <=- (The Sysop's first name)
Paquette <=- (The Sysop's last name)
Example configuration file for CHAIN.TXT
----------------------------------------
C:\BBS\CHAIN.TXT <=- (Full pathname of your CHAIN.TXT file)
The Livewire BBS <=- (Change this to your BBS name)
Richard <=- (The Sysop's first name)
Paquette <=- (The Sysop's last name)
Example configuration file for GTUSER.BBS
----------------------------------------
C:\BBS\GTUSER.BBS <=- (Full pathname of your GTUSER.BBS file)
The Livewire BBS <=- (Change this to your BBS name)
Richard <=- (The Sysop's first name)
Paquette <=- (The Sysop's last name)
1 <=- (COM port number - defaults to 1)
1 <=- (Node number - defaults to 1)
Example configuration file for TRIBBS.SYS
----------------------------------------
C:\BBS\TRIBBS.SYS <=- (Full pathname of your TRIBBS.SYS file)
The Livewire BBS <=- (Change this to your BBS name)
Richard <=- (The Sysop's first name)
Paquette <=- (The Sysop's last name)
Example Batch File
-------------------
A sample batch file is included and is similar to the following:
ECHO OFF
CD\DOORS <=- Switch to the door's Directory.
DOOR DOOR.CNF <=- Execute the door program and pass the
configuration filename to the program.
CD\PCB <=- Go back to PCB DIR when user exits door.
BOARD <=- Restart BBS.
This Door is multi-node compatible so you may run more than 1 node from
the same .CNF file provided the path to your system file (DORINFOx.DEF,
CALLINFO.BBS, etc) is exactly the same unless you are using environment
variables, (q.v.)
Environment Variables
PCBoard automatically creates the %PCBDRIVE% & %PCBDIR% environment
variables. Non-PCBoard systems may also use these variables by including
the following in either your BBS batch or AUTOEXEC.BAT
SET PCBDRIVE=C: <- Drive letter of your BBS files
SET PCBDIR=\BBSDIR <- Path to your BBS files
Then in your Door .CNF file instead of putting C:\BBSDIR\DOOR.SYS, you
would put %PCBDRIVE%%PCBDIR%\DOOR.SYS. This allows you to use just one
.CNF file for multi-node operation!
To specify a non-standard IRQ, put the IRQ number after the .CNF on the
command line. For example:
DOOR DOOR.CNF /5
or using the PCBDRIVE procedure: SET IRQ=5 and use
DOOR DOOR.CNF /%IRQ%
This tells the program to use IRQ 5 instead of the standard IRQ.
Top Ten Bulletin
----------------
The first time you run this door online it will create 3 files called
****.BUL, ****.BLT and ****.BLT. If you wish to change the path
or filename of the Bulletin, you must edit ****.BUL and change the
first line to whatever path/filename you desire, assuming that this door
requires or has a bulletin to display.. these docs are generic for all
The Livewire Doors and some of them DO NOT create a bulletin.
Sysop Keys
----------
F3 - Toggles the printer On/Off. Value is passed to PCBoard and/or
written to DOOR.SYS and USERS.SYS
F4 - Toggles the Page Bell on/off. Value is passed to PCBoard
and/or written to DOOR.SYS and USERS.SYS
F5 - DOS Shell. Allows SysOp to exit to DOS from inside a DOOR.
F7 - Toggles the Caller Alarm On/Off. Value is passed to PCBoard
and/or written to DOOR.SYS and USERS.SYS
F8 - Returns the caller involuntarily to the BBS.
F9 - Toggles the local display On/Off. Value is passed to PCBoard
and/or written to DOOR.SYS and USERS.SYS
F10 - Activates SysOp CHAT mode within the DOOR.
ESC - Deactivates CHAT mode. DOOR is resumed.
UP - Give the caller extra time while in the DOOR.
DN - Subtract time from the caller while in the DOOR.
HOME - HELP key for Status Line options.
ALT-N - SysOp next on toggle. Value passed to PCBoard. (PCBoard only)
ALT-X - PCBoard will exit after current caller logs off. Value is
passed to PCBoard. Not available on non-PCBoard systems.
Distribution
------------
This program is being distributed via the SHAREWARE concept and as such,
may be copied freely with the following restrictions:
* The program must be supplied in it's original unmodified
form, including documentation.
* This program may not be distributed as part of any commercial
application or service without the express, written consent
of the author.
* Vendors of Shareware/Public Domain software may not
distribute this program without the express, written
consent of the author even if Vendor has been approved
by the Association of Shareware Professionals (ASP).
Registration
------------
This door represents many hours of programming and the author deserves
just compensation for his time, efforts and expertise. If you find this
program to be of some value and you continue to use it on your system,
you must return the order form provided along with the registration fee.
Registration entitles you to free upgrades via modem from The Livewire
BBS Support Conference. Payments should be made in the form of a check or
money order. Foreign orders must be in U.S. funds drawn on a U.S. bank.
Online registration with Visa or Mastercard is available via our Credit
Card Door at the following system:
The Livewire BBS: (609) 235-5297 HST
NOTE: If you register by mail, your registration number will be posted
in a private message on The Livewire BBS.
Copyright
---------
This door is Copyrighted(c) 1989-93 by Richard Paquette, and is distributed
as Shareware. Under this concept you may use the SHAREWARE (unregistered)
version for a reasonable period of time for evaluation after which you
must either register your copy or discontinue usage.
Warranty
--------
This product is provided as is without warranty of any kind. The entire
risk as to the results and performance of the program is assumed by you.
Futhermore, the author does not warrant, guarantee, or make any other
representations regarding the use of, or the results of the use of the
program, and you rely on the program and results solely at your own
risk. The author cannot and will not accept responsibility for system
damage, loss of profit or any other special, consequential or incidental
damages resulting from the use of or inability to use this product.
Com-Ports
---------
DoorFrame now supports COM 0 thru 15.
Fossil Drivers
--------------
This door may be used with Fossil drivers such as X00 & BNU. This makes
it compatible with most multi-port boards. To use the Fossil driver
instead of the standard COM ports, include /FD on the command line when
running the door. For example: DOOR DOOR.CNF /FD